package src.main.java.org.reflect.demo;

import org.junit.Test;

public class TestFrame {
    @Test
    public void save() throws Exception {
        Student student = new Student("张三", 23, '男', 183, "打篮球");
        Teacher teacher = new Teacher("李华", 5093.3);
        //需求：把任意对象的字段名称和其对应的值等信息，保存到文件中。
        ObjectFrame.saveObject(student);
        ObjectFrame.saveObject(teacher);
    }
}
